<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="../style.css" rel="stylesheet" type="text/css">
<style type="text/css" media="screen">@import "../style.css";</style>

<title> VideoExpress - PHP Projet</title></head>

<body>
<div class="center">
<div class="outer" id="outer">
<div class="outer_l">
<div class="outer_r">

<!--ENTETE-->
<?php 
include ("../inc/inc-entete.php");
?>
<!--FIN ENTETE-->
<div class="right">
<a href="../Accueil.php"><span>Accueil</span></a> | <a href="Menu_Retour.php"><span>Menu Retour</span></a>
</div>
<div class="wrap main">
<div class="wrap main_l">
<div class="wrap main_r">
<!--MENU-->
<?php 
include ("../inc/inc-menu_retour.php");
?>
<!--FIN MENU-->


<!--CONTENT-->
<div class="wrap main_content_max" id="main_content">
<div class="content">
<table class="blog" cellpadding="0" cellspacing="0">
<tr><td valign="top"><div>
		
<table class="contentpaneopen"><tr>
<td class="contentheading" width="100%">RADIER UN ABONNE</td></tr></table>
<table class="contentpaneopen"><tr><td valign="top" colspan="2">
<?php
require ("../Outils.inc");
require ("../connect.php");
$Code=$_POST["Code"];

$req="Select * FROM abonnes WHERE `Code` LIKE '$Code'";
$resul = DB_execSQL($req,$serv);

if ( mysql_num_rows($resul) == 0 ){
echo "<h2>Le Code d'abonn�e n'est pas correct .<br \>";
echo "<h2>Essayez de nouveau .<br \>";
echo "<form method='POST' action='RadierAbonnes.php'> <input type='submit' value='R�essayer' STYLE='font-family:Garamond; font-size:medium;
font-style:normal; background:#444444 none; color:#FFF; border: 1px dotted'>
</form>";

} else {

$req="DELETE FROM `abonnes` WHERE `Code` LIKE '$Code'";
 
DB_execSQL($req,$serv);

echo "<img src='../images/next.png'><br \>"
	."<font size='2'>Cet abonne est bien effac�</font>";

}
?>
</td></tr></table>

<span class="article_separator">&nbsp;</span>

</div></td></tr></table>
</div>
</div>
</div>
</div>
</div>
</div>
<!--FIN CONTENT-->

<!-- PIED -->
<?php include ("../inc/inc-pied.php"); ?>
<!-- FIN - PIED --> 
</body>
</html>